<template>
  <div
    id="AvoidItem"
    class="col-lg-4 col-md-6 mt-4 wow fadeInUp"
    data-wow-duration="0.5s"
  >
    <div class="serviceBox">
      <div class="avoidTitle row">
        <div class="col-4">{{ itemA }}</div>
        <div class="col-4">
          <span class="yida" v-if="isFit">宜搭</span>
          <span class="xiangke" v-else>相克</span>
        </div>
        <div class="col-4">{{ itemB }}</div>
      </div>
      <p class="avoidContent">
        <slot>当前内容为空</slot>
      </p>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    itemA: {
      type: String,
      default: "鸡肉",
    },
    itemB: {
      type: String,
      default: "牛肉",
    },
    isFit: {
      type: Boolean,
      default: true,
    },
  },
  data() {
    return {};
  },
  created() {},
  mounted() {},
  methods: {},
};
</script>

<style scoped>
#porAvoidBody .avoidTitle {
  font-size: 18px;
  line-height: 20px;
  font-family: sans-serif;
  margin: 20px 0;
  color: #444;
  font-weight: bold;
}
#AvoidItem .avoidTitle div {
  padding: 0;
  color: #273c5f;
}
#AvoidItem .serviceBox {
  padding: 10px 5px 20px 5px;
  border-radius: 10px;
  border-bottom-color: #6c68b399;
}
#AvoidItem .avoidTitle div:nth-child(1) {
  text-align: right;
  line-height: 30px;
}
#AvoidItem .avoidTitle div:nth-child(2) {
  text-align: center;
  color: #fff;
}
#AvoidItem .avoidTitle div:nth-child(3) {
  text-align: left;
  line-height: 30px;
}

#AvoidItem .xiangke {
  padding: 5px 10px;
  background-color: #cc0000;
  border-radius: 5px;
}
#AvoidItem .yida {
  padding: 5px 10px;
  background-color: #52a00d;
  border-radius: 5px;
}
#AvoidItem .avoidContent {
  color: #747f9b;
  padding: 0 5%;
}
</style>
